<template>
  <div class="max">
    <div class="container">
      <span>首页</span>
      <span class="position">{{ info.total }}</span>
    </div>
    <div class="left">
      <img :src="info.picture" alt="" />
    </div>
    <div class="right">
      <h1>{{ info.total }}</h1>
      <el-form label-width="80px">
       <el-form-item label="职位:">
          <el-input type="text" v-model="info.position"></el-input>
        </el-form-item>
        <el-form-item label="招聘要求:">
          <el-input type="text" v-model="info.workRequire"></el-input>
        </el-form-item>
         <el-form-item label="工资待遇:">
          <el-input type="text" v-model="info.workSalary"></el-input>
        </el-form-item>
        <el-form-item label="工作地点:">
          <el-input type="text" v-model="info.workPlace"></el-input>
        </el-form-item>
        <el-form-item label="工作时间:">
          <el-input type="text" v-model="info.workTime"></el-input>
        </el-form-item>
        <el-form-item label="招聘人数:">
          <el-input type="text" v-model="info.recruitsNum"></el-input>
        </el-form-item>
        <el-form-item label="招聘时间:">
          <el-input type="text" v-model="info.recruitsTime"></el-input>
        </el-form-item>
        <el-form-item label="截止时间:">
          <el-input type="text" v-model="info.recruitsEndTime	"></el-input>
        </el-form-item>
        <el-form-item label="负责人:">
          <el-input type="text" v-model="info.lead	"></el-input>
        </el-form-item>
        <el-form-item label="联系方式:">
          <el-input type="text" v-model="info.contact"></el-input>
        </el-form-item>
        <el-form-item label="发布日期:">
          <el-input type="text" v-model="info.releaseDate"></el-input>
        </el-form-item>
         <el-form-item label="点击次数:">
          <el-input type="text" v-model="info.clickNum"></el-input>
        </el-form-item>
      </el-form>
    </div>
    <div class="f" >
        <el-button  @click="$router.push('/VolunteerInfoMessage')" >应聘</el-button>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      info: null,
    };
  },
  methods: {
    async getInfo(id) {
      let { data: res } = await this.$axios.get(
        "/volunteer/getlist?pageNum=1&pageSize=3&id=" + id
      );
      this.info = res.data.list[0];
      // this.getInfo(id)
    },
  },
  created() {
    let id = this.$route.params.id;
    this.getInfo(id);
  },
};
</script>
<style scoped lang="scss"  >
.max {
  width: 800px;
  margin: 0 auto;
}
.container {
  width: 800px;
  height: 50px;
  background-color: rgb(54, 150, 205);
  margin: 0 auto;
  border-radius: 5px;
  span {
    height: 30px;
    color: #fff;
    line-height: 50px;
    margin: auto 10px;
  }
  .position {
    color: black;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #fff;
  }
}
.left {
  width: 400px;
  img {
    width: 300px;
    height: 300px;
    margin-top: 30px;
    margin-left: 30px;
    border-radius: 10%;
    box-shadow: 0 0 10px rgb(93, 192, 237);
  }
}
.right {
  width: 400px;
  // float: right;
  margin-left: 380px;
  margin-top: -300px;
  h1 {
    text-align: center;
    font-size: 20px;
  }
}
// .f{
     
// }
.f{
    text-align: center;
    .el-button{
    box-shadow: 0 0 10px rgb(93, 192, 237);
    
}
}

</style>